package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.SafetyTrainingDao;
import com.site.wisdom_construction.entity.personnelModule.SafetyTraining;
import com.site.wisdom_construction.responseEntity.SafetyTrainingResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/5
 * @Description
 */
@Service
public class SafetyTrainingService implements SafetyTrainingDao {
    @Autowired
    private SafetyTrainingDao safetyTrainingDao;

    @Override
    public int insertSafetyTraining(SafetyTraining safetyTraining) {
        return safetyTrainingDao.insertSafetyTraining(safetyTraining);
    }

    @Override
    public int deleteSafetyTraining(Map map) {
        return safetyTrainingDao.deleteSafetyTraining(map);
    }

    @Override
    public int updateSafetyTraining(SafetyTraining safetyTraining) {
        return safetyTrainingDao.updateSafetyTraining(safetyTraining);
    }

    @Override
    public List<SafetyTraining> findSafetyTrainingByPage(Map map) {
        return safetyTrainingDao.findSafetyTrainingByPage(map);
    }

    @Override
    public long Total(Map map) {
        return safetyTrainingDao.Total(map);
    }

    @Override
    public SafetyTrainingResult findSafetyTrainingById(Map map) {
        return safetyTrainingDao.findSafetyTrainingById(map);
    }
}
